using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
using UnityEngine.UI;

public class DisplayStatistics : MonoBehaviour
{
    [SerializeField] private TextMeshProUGUI statistics;

    private void Start() {
        statistics.text = PlayerPrefs.HasKey("stat") ? PlayerPrefs.GetString("stat") : "There are no statistics yet...";
    }

    public void DeleteStatistics() {
        PlayerPrefs.DeleteKey("stat");
        statistics.text = "There are no statistics yet...";
    }
}
